<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>

<script>

    $('#check').click(function(){

        if($(this).attr("checked"))
        {
            $(".check").attr("checked","checked")
        }else
        {
            $(".check").removeAttr("checked")
        }
    } )

</script>

<link rel="stylesheet" href="/admin/css/pintuer.css">
<link rel="stylesheet" href="/admin/css/admin.css">
<script src="/admin/js/jquery.js"></script>
<script src="/admin/js/pintuer.js    "></script>
</head>
<body>
<form method="post" action="" id="listform">

  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 栏目列表</strong> </div>
  <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="{{url('admin_cat/add')}}"> 添加栏目</a> </li>

      
      </ul>
    </div>




    <table class="table table-hover text-center">
      <tr>



       
        <th>栏目ID</th>
        <th>栏目名称</th>
        <th>栏目下文章数</th>
        <th width="310">操作</th>
      </tr>

      @foreach($catlist as $list)


        <tr>
          <td class="first-cell" style="width:610">{{$list->cat_id}}</td>
          
          <td class="" style="padding-left=&quot;0&quot; ">
          @if($list->parentid !== 0)

           <span style=" margin-left:0px;"></span>|---
         
          @endif
          {{$list->cat_name}}</td>

          <td class="first-cell" style="width:610">{{$list->count}}</td>
          <td><div class="button-group"> <a class="button border-main" href="{{url('admin_cat/edit',[$list->cat_id])}}"><span class="icon-edit"></span> 修改</a>
          <a onclick="return confirm('确定删除本栏目吗?')" class="button border-red" href="{{url('admin_cat/del',[$list->cat_id])}}"  ><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
      @endforeach


      <tr>
    
      </tr>
      



    </table>
  </div>
</form> 
<!-- <div class="pagelist">    {!!$catlist->render()!!}   </div> -->
<script type="text/javascript">






</script>
</body>
</html>
